package com.system.weirdor.www.listen;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * 应用就绪事件监听器
 *
 * Created by weirdor on 2017/8/23.
 */
    public class ApplicationReadyEventListener implements ApplicationListener<ApplicationReadyEvent> {

        private Logger logger = LoggerFactory.getLogger(ApplicationReadyEventListener.class);

        @Override
        public void onApplicationEvent(ApplicationReadyEvent event) {
            logger.info("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
            logger.info("+++++++++++++++++++++++  system-weirdor启动完成   +++++++++++++++++++++++");
            logger.info("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
        }
}
